package main

import (
	"activity/application"
	"activity/infrastructure/repository"
	"github.com/gin-gonic/gin"
)

type server struct{}

func (s server) Run() {

	engine := gin.New()

	handler := new(application.Handler)
	handler.SetRepPrizePool(repository.NewPrizePool())
	//engine.GET("/user", user.Get)
	engine.GET("/lottery/:id", handler.Lottery)

	engine.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
	})

	engine.Run()
}
